aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/dashboard
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-12-22 13:39:06 -0800
committerAdam Soltys <[email protected]>2022-12-22 13:39:06 -0800
commit2c1ab210a3f5cb03316ea337c5fd523c75fd0197 (patch)
treea483eb425c9d1eed170a29efaadad1b798c02fb0 /src/routes/(app)/[username]/dashboard
parent0dcdeb0d05c51bd4e3d12f266e09771d694eee38 (diff)
downloadcoinos-ui-2c1ab210a3f5cb03316ea337c5fd523c75fd0197.tar.gz
coinos-ui-2c1ab210a3f5cb03316ea337c5fd523c75fd0197.zip
fix avatars
Diffstat (limited to 'src/routes/(app)/[username]/dashboard')
-rw-r--r--src/routes/(app)/[username]/dashboard/+page.svelte12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/routes/(app)/[username]/dashboard/+page.svelte b/src/routes/(app)/[username]/dashboard/+page.svelte
index 0b49a870..9c321472 100644
--- a/src/routes/(app)/[username]/dashboard/+page.svelte
+++ b/src/routes/(app)/[username]/dashboard/+page.svelte
@@ -6,6 +6,8 @@
import { rate, password, selectedRate } from '$lib/store';
import { goto } from '$app/navigation';
import { t } from '$lib/translations';
+ import { events } from '$lib/store';
+ import { Feed } from '$comp';
export let data;
$: ({ invoices, requests } = data);
@@ -55,6 +57,10 @@
$: btcPrice = f($selectedRate, user.currency);
$: accountBalanceBtc = user.account.balance / sats;
+
+ $: sorted = Object.values($events)
+ .filter((ev) => ev?.pubkey)
+ .sort((a, b) => b.seen - a.seen);
</script>
<div class="container px-4 max-w-md mx-auto mt-20 space-y-12 mb-8">
@@ -170,3 +176,9 @@
</div>
</div>
</div>
+
+<div class="mb-20">
+ <div class="container w-full mx-auto text-lg px-4 md:max-w-2xl space-y-5">
+ <Feed events={sorted} />
+ </div>
+</div>